package com.hong.Config;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

/**
 * 管理各个服务的服务管理对象
 *
 * @Author HQT
 * @Date 2022/7/15 20:35
 */
public class ConfigManager {
    private Map<Object, Object> profile = new HashMap<>();
    private RpcServerConfig rpcServerConfig = new RpcServerConfig();
    private RegisterConfig registerConfig = new RegisterConfig();

    public ConfigManager() throws IOException {
    }

    public RegisterConfig getRegisterConfig() {
        return registerConfig;
    }

    public void setRegisterConfig(RegisterConfig registerConfig) {
        this.registerConfig = registerConfig;
    }

    public RpcServerConfig getRpcServerConfig() {
        return rpcServerConfig;
    }

    public void setServerConfig(RpcServerConfig config) {
        rpcServerConfig = config;
    }

    public Map<Object, Object> getProfile() {
        return profile;
    }

    public void setProfile(Map<Object, Object> profile) {
        this.profile = profile;
    }

}
